home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / ddeexamp.zip / DDEEXEC.H < prev    next >
C/C++ Source or Header  |  1993-07-08  |  2KB  |  108 lines

  1. /*
  2.     ddeexec.h
  3.  
  4.     Header file 
  5.  
  6. */
  7.  
  8. #include <windows.h>
  9. #include <string.h>
  10. #include <stdlib.h>
  11. #include "stddde.h"
  12.  
  13. //
  14. // Menu ids
  15. //
  16.  
  17. #define IDM_EXIT        100
  18.  
  19. //
  20. // Child windows 
  21. //
  22.  
  23. #define IDC_STATUS      2
  24. #define IDC_FUN         3
  25.  
  26. //
  27. // DDE string names for our own service, topics and items
  28. //
  29.  
  30. #define SZ_SERVICENAME  "DdeExec"
  31. #define SZ_DRAWRECT     "DrawRect"
  32.  
  33. //
  34. // ddeexec.c
  35. //
  36.  
  37. extern HINSTANCE hInst;
  38. extern HWND hwndMain;
  39. extern char *szAppName;
  40.  
  41. extern LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
  42.  
  43. //
  44. // init.c
  45. //
  46.  
  47. extern BOOL Init(HANDLE hInstance, int cmdShow);
  48.  
  49. //
  50. // status.c
  51. //
  52.  
  53. extern HWND hwndStatus;
  54.  
  55. extern void cdecl Status(LPSTR lpFormat, ...);
  56. extern void DrawStatusItem(HWND hWnd, LPDRAWITEMSTRUCT lpDI);
  57. extern void MeasureStatusItem(HWND hWnd, LPMEASUREITEMSTRUCT lpMIS);
  58.  
  59. //
  60. // dde.c
  61. //
  62.  
  63. extern DWORD dwDDEInst;
  64. extern WORD MyFormats[];
  65.  
  66. extern void SetupDDE(HINSTANCE hInstance);
  67. extern HDDEDATA MakeCFText(UINT wFmt, LPSTR lpszStr, HSZ hszItem);
  68.  
  69. //
  70. // execfns.c
  71. //
  72.  
  73. extern BOOL FAR EllipseFn(PDDETOPICINFO pTopic,
  74.                          LPSTR pszResult,
  75.                          UINT uiResultSize,
  76.                          UINT uiNargs,
  77.                          LPSTR FAR *ppArgs);
  78. extern BOOL FAR RectangleFn(PDDETOPICINFO pTopic,
  79.                          LPSTR pszResult,
  80.                          UINT uiResultSize,
  81.                          UINT uiNargs,
  82.                          LPSTR FAR *ppArgs);
  83. extern BOOL FAR LineFn(PDDETOPICINFO pTopic,
  84.                          LPSTR pszResult,
  85.                          UINT uiResultSize,
  86.                          UINT uiNargs,
  87.                          LPSTR FAR *ppArgs);
  88. extern BOOL FAR EraseFn(PDDETOPICINFO pTopic,
  89.                          LPSTR pszResult,
  90.                          UINT uiResultSize,
  91.                          UINT uiNargs,
  92.                          LPSTR FAR *ppArgs);
  93. extern BOOL FAR PenFn(PDDETOPICINFO pTopic,
  94.                          LPSTR pszResult,
  95.                          UINT uiResultSize,
  96.                          UINT uiNargs,
  97.                          LPSTR FAR *ppArgs);
  98. extern BOOL FAR BrushFn(PDDETOPICINFO pTopic,
  99.                          LPSTR pszResult,
  100.                          UINT uiResultSize,
  101.                          UINT uiNargs,
  102.                          LPSTR FAR *ppArgs);
  103. extern BOOL FAR TextFn(PDDETOPICINFO pTopic,
  104.                          LPSTR pszResult,
  105.                          UINT uiResultSize,
  106.                          UINT uiNargs,
  107.                          LPSTR FAR *ppArgs);
  108.